package com.sxyjhh.fg_data_push.utils;

/**
 *
 * 项目名称：hhlms
 * 类名称：Constants
 * 类描述: 静态常量
 * 创建人：leishaokai
 * 创建时间：2014年3月11日 下午5:41:20
 *
 */
public class Constants {

	/**
	 * 私有构造器,不允许实例化
	 */
	private Constants() {
	}

	/*--------------------数据库类型说明----------------*/
	/** oracle */
	public final static String DB_ORACLE = "ORACLE";
	/** mysql */
	public final static String DB_MYSQL = "MYSQL";
	/** SQL SERVER */
	public final static String DB_SQLSERVER = "SQLSERVER";
	/**默认数据库类型*/
	public final static String DB_DEFAULT = "MYSQL";

	/*------------------HttpRequest中存放的东西-------------------*/
	/**	HttpRequest中翻页页码的参数名 */
	public static final String HTTP_PARAMETER_PAGE_NUM = "pageNumber";

	/*-----------------系统登录后给session中存放的内容------------------------*/
	public static final String USER_ID = "user_id";
	public static final String USER_NAME = "user_name";
	public static final String USER_ACCOUNT = "user_account";

	/*-----------------通用状态，启用禁用-------------------------*/
	public static final String USED_FLAG = "1";//启用
	public static final String UNUSED_FLAG = "0";//禁用

	public static final String DEFAULT_PWD = "111111";//用户默认密码6个1

	/***--------------资源类型----------------**/
	public static final String RES_TYPE_BTN="btn";

	/**
	 *全局数据状态值
	 */
	public static final String DATA_FLAG_OK="1";//数据正常
	public static final String DATA_FLAG_DELETE="2";//已删除
	public static final String DATA_FLAG_ERROR="0";//状态无效
	/*
  * 通用状态
  */
	public static final String FLAG_USERED="1";//启用
	public static final String FLAG_STOPED="2";//禁用
	public static final String FLAG_ERROR="0";//状态无效
	/**
	 * 部门类型
	 */
	public static final String ARG_TYPE_PROVENCE="root";//省局
	public static final String ARG_TYPE_INCLUDE="include";//直属部门
	public static final String ARG_TYPE_CHILDREN="child";//下辖单位
	/**
	 * 部门级别
	 */
	public static final String ARGUMENT_LEVEL_ARG="1";//（一级）
	public static final String ARGUMENT_LEVEL_DEPT="2";//（二级）
	public static final String ARGUMENT_LEVEL_GROUP="3";//（三级）
	/**
	 * 数据统计分类 1：采集量:2：清洗量 3:问题量 4:现存量
	 */
	public static final String DATATYPE_DAQ="1";
	public static final String DATATYPE_DCLEAN="2";
	public static final String DATATYPE_PROBLEM="3";
	public static final String DATATYPE_STORAGE="4";
	/**
	 * 通用是、否状态：1-是；2-否
	 */
	public static final String ISORNOT_IS="1";//是
	public static final String ISORNOT_NOT="2";//否

	/**
	 * 各子系统实体映射表统一前缀
	 */
	public static final String TABLE_PREFIX_BASE = "base";
	public static final String TABLE_PREFIX_DAQ = "daq";
	public static final String TABLE_PREFIX_DCLEAN = "dclean";
	public static final String TABLE_PREFIX_DETECT = "detect";

	public static final String TABLE_PREFIX_SUPER_FUSION = "fusion";
	public static final String TABLE_PREFIX_DSERVICE = "dservice";

	/**
	 * 表管理分类 1：采集源:2：采集目标 3:清洗目标 4:融合目标
	 */
	public static final String TABLEINFO_DAQ_INPUT="1";
	public static final String TABLEINFO_DAQ_OUTPUT="2";
	public static final String TABLEINFO_DCLEAN_OUTPUT="3";
	public static final String TABLEINFO_FUSION_OUTPUT="4";

	//采集hbase表前缀
	public static final String HBASE_DAQ_TABLE_PREFIX = "DAQ_";
	//清洗hbase表前缀
	public static final String HBASE_DCLEAN_TABLE_PREFIX = "DCLEAN_";
	//清洗hbase问题表后缀
	public static final String HBASE_DCLEAN_TABLE_POSTSFIX = "_PROBLEM";
	//融合hbase表前缀
	public static final String HBASE_FUSION_TABLE_PREFIX = "FUSION_";
	/**
	 * 增量类型
	 */
	public static final String DELTA_TYPE_DC="DC";//采集清洗
	public static final String DELTA_TYPE_DF="DF";//采集融合
	/**
	 * 采集量统计方式
	 */
	public static final String STATIS_DEPT = "1";
	public static final String STATIS_DATE = "2";
	/**
	 * 采集时间粒度
	 */
	public static final String DAQ_YEAR = "year";
	public static final String DAQ_MOUTH = "mouth";
	public static final String DAQ_WEEK = "week";
	public static final String DAQ_DAY = "day";
	/**
	 * 采集监控查询分类
	 */
	public static String STATISTIC_PRISON_TYPE = "prison";//按监狱
	public static String STATISTIC_TIME_TYPE = "time";//按时间
	/**
	 * 采集任务结果状态（1：未知；2：失败 3：成功）
	 */
	public static final String DAQ_RESULT_NO = "1";
	public static final String DAQ_RESULT_FAILURE = "2";
	public static final String DAQ_RESULT_SUCCESS = "3";

	/**
	 * 清洗规则类型
	 */
	public static String CLEAN_RULE_TYPE_INPUT = "1"; //输入
	public static String CLEAN_RULE_TYPE_HANDLE = "2"; //处理
	public static String CLEAN_RULE_TYPE_OUTPUT = "3"; //输出
	/*
	* 字典级别
	* */
	public static final String DIC_LEVEL_1="1";//一级（字典分类）
	public static final String DIC_LEVEL_2="2";//二级（字典值）
	/**
	 * 清洗策略名修改
	 */
	public static String STRATEGY_NAME_CHANGE = "y"; //以修改
	public static String STRATEGY_NAME_NOT_CHANGE = "n"; //未修改
	/**
	 * 统计时间维度
	 */
	public static final String STATIC_YEAR = "1";
	public static final String STATIC_MONTH = "2";
	public static final String STATIC_DAY = "3";
	/**
	 * 系统类型
	 */
	public static final String SYS_YZXT="yzxt";//狱政系统
	public static final String SYS_WSXT="wsxt";//生活卫生系统
	public static final String SYS_LGXT="lgxt";//劳动改造系统
}
